home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / SoundAndMusic / cmix / model.instruments / fm.data < prev    next >
Text File  |  1991-12-09  |  489b  |  10 lines

  1. /* p2 is pitch of carrier, p3 is pitch of mod, p4&5 index low&hi,
  2.    p6&7 rise and decay times  p8 is amp
  3.    function 1 is sine wave, function 2 is index guide, 3 is envelope */
  4. output("sf/fm.test")
  5. makegen(1,10,2048,1)          /* sine wave */
  6. makegen(2,5,512,.01,512,1)       /* exponential rise function */
  7. makegen(3,7,512,0,512,1)
  8. float start,dur,modpch,carpch,indexhi,indexlo,rise,decay,indexdur
  9. fm(start=0,dur=2,modpch=8.00,carpch=9.00,indexhi=10,indexlo=1,rise=.1,decay=.5,10000,indexdur=1)
  10.